package com.hwz.gulimaill.auth.fegin;

import com.hwz.common.entity.OAuthToken;
import com.hwz.common.utils.R;
import com.hwz.gulimaill.auth.vo.UserLoginVo;
import com.hwz.gulimaill.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    @RequestMapping("member/member/regist")
    public R regist(@RequestBody UserRegisterVo userRegisterVo);

    @PostMapping("member/member/login")
    public R login(@RequestBody UserLoginVo userLoginVo);

    @PostMapping("member/member/oauth/login")
    public R oauthLogin(@RequestBody OAuthToken oAuthToken);
}
